home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / programer2 / aoflib / Example / c / program
Encoding:
Text File  |  1996-05-24  |  327 b   |  20 lines

  1. /* program.c */
  2.  
  3. #include <stdio.h>
  4.  
  5. /* define prototypes for the functions */
  6. void print(char);
  7. int  count(void);
  8.  
  9. int main()
  10. {
  11.    int i;
  12.  
  13.    printf("This is an example of the print() function:\n");
  14.    print('@');
  15.    printf("\n\n");
  16.  
  17.    for(i=0;i<5;i++)
  18.      printf("count() has been called %d times previously\n",count());
  19. }
  20.